/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.a.a;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.text.TextUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class a extends com.qihoo.gamecenter.sdk.suspend.a.a.a.a {
    private static a e = null;

    public static void a(Context paramContext) {
        if ((e != null) || (paramContext == null))
            return;
        e = new a(paramContext);
    }

    public static a a() {
        return e;
    }

    public a(Context paramContext) {
        super(paramContext);
    }

    public Bitmap a(String paramString) {
        String str = b(paramString);
        if (TextUtils.isEmpty(str))
            return null;
        Bitmap localBitmap = null;
        File localFile = new File(str);
        if (localFile.exists()) {
            try {
                localBitmap = BitmapFactory.decodeStream(new FileInputStream(localFile));
            } catch (FileNotFoundException localFileNotFoundException) {
                localFileNotFoundException.printStackTrace();
            }
            if (localBitmap == null)
                localFile.delete();
        }
        return localBitmap;
    }

    protected String b() {
        return "image";
    }

    protected int c() {
        return 100;
    }
}